package com.ruoyi.msg.domain.bo;

import cn.hutool.core.util.ObjectUtil;
import com.ruoyi.msg.domain.MsgDcwjWjTk;
import lombok.Data;

import java.util.List;

/**
 * @author zhangxiaohao
 * @comment 问卷选题BO
 * @date 2023/2/7
 */
@Data
public class WjXtBatchBo {

    /**
     * 问卷id
     */
    private Long wjId;

    /**
     * 问卷题库关系
     */
    private List<MsgDcwjWjTk> list;

    public List<MsgDcwjWjTk> getList() {
        if (wjId != null && ObjectUtil.isNotEmpty(list)) {
            list.forEach(t -> t.setWjId(wjId));
        }
        return list;
    }

}
